#include <stdio.h>

int main() {
    char arr[10000];
    gets(arr);
    char* p = arr;
    char* p2 = p;
    while (*p2 != '\0')
    {
        p2 = p2 + 1;
    }
    p2--;
    int i;
    int n = p2-p+1;
    for (i = 0; i < n; i++)
    {
        printf("%c", *p2);
        p2 = p2 - 1;
    }
    return 0;
}
